![]() |
PBCreateFileIDRefSync |
||||
Header: | Files.h | Carbon status: | Supported | |
Establishes a file ID reference for a file.
OSErr PBCreateFileIDRefSync ( HParmBlkPtr paramBlock );
A pointer to an fidParam variant of the HFS parameter block.
A result code.
The relevant fields of the parameter block are:
On input, a pointer to a completion function.
On output, the result code of the function.
On input, a pointer to a filename.
On input, a volume specification.
On input, the file’s parent directory ID.
On output, a file ID. If a file ID reference already exists for the file, PBCreateFileIDRefSync supplies the file ID but returns the result code fidExists.
Given a volume reference number, filename, and parent directory ID, the PBCreateFileIDRefSync function creates a structure to hold the name and parent directory ID of the specified file.
Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.
© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)